import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    }
    , {
      path: "/home",
      name: "home",
      component: Home
    },
    {
      path: '/borrow',
      component: () => import("./views/Borrow.vue"),
      children: [
        {
          path: 'qqzt',
          component: () => import('./components/qqzt.vue')
        },
        {
          path: 'jeb',
          component: () => import('./components/jeb.vue')
        }
      ]
    },
    {
      path: '/account',
      component: () => import("./views/Account.vue")
    },
    {
      path: '/find',
      component: () => import("./views/Find.vue")
    },
    {
      path:'/borrow',
      redirect:'/home'
    }
    
  ],
  linkActiveClass: 'mui-active'
});
